import request from '@/utils/request'

// 查询展示词云图列表
export function listMain(query) {
  return request({
    url: '/wordcloud/main/list',
    method: 'get',
    params: query
  })
}

// 查询展示词云图详细
export function getMain(tpId) {
  return request({
    url: '/wordcloud/main/' + tpId,
    method: 'get'
  })
}

// input->result->pic
export function testMain(tpId) {
  return request({
    url: '/wordcloud/main/' + tpId,
    method: 'get'
  })
}

// 新增展示词云图
export function addMain(data) {
  return request({
    url: '/wordcloud/main',
    method: 'post',
    data: data
  })
}

// 修改展示词云图
export function updateMain(data) {
  return request({
    url: '/wordcloud/main',
    method: 'put',
    data: data
  })
}

// 删除展示词云图
export function delMain(tpId) {
  return request({
    url: '/wordcloud/main/' + tpId,
    method: 'delete'
  })
}
